package com.punai.customer.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.punai.common.core.domain.TreeBo;
import com.punai.customer.domain.CusMaterialChapter;
import com.punai.standard.domain.StaClChapter;

import java.util.List;

/**
 * 材料章节Service接口
 *
 * @author zhx
 * @date 2022-12-04
 */
public interface ICusMaterialChapterService extends IService<CusMaterialChapter>
{
    /**
     * 查询材料章节
     *
     * @param id 材料章节主键
     * @return 材料章节
     */
    public CusMaterialChapter selectCusMaterialChapterById(String id,Long companyId);

    /**
     * 查询材料章节列表
     *
     * @param cusMaterialChapter 材料章节
     * @return 材料章节集合
     */
    public List<CusMaterialChapter> selectCusMaterialChapterList(CusMaterialChapter cusMaterialChapter);

    /**
     * 新增材料章节
     *
     * @param cusMaterialChapter 材料章节
     * @return 结果
     */
    public int insertCusMaterialChapter(CusMaterialChapter cusMaterialChapter);

    /**
     * 修改材料章节
     *
     * @param cusMaterialChapter 材料章节
     * @return 结果
     */
    public int updateCusMaterialChapter(CusMaterialChapter cusMaterialChapter);

    /**
     * 删除材料章节信息
     *
     * @param id 材料章节主键
     * @return 结果
     */
    public int deleteCusMaterialChapterById(String id,Long companyId,String shape);

    void moveTree(String type,String id,String dropId,Long companyId);

    List<TreeBo> treeData(Long companyId);

    public StaClChapter getStaClChapterById(String id, Long companyId);
}
